package org.rguess.patterns.interfaces.composite;

public class Leaf extends AComponent {
	public Leaf(String name) {
		super(name);
	}

	public void Add(AComponent c) {
		System.out.println("不能添加子项！");
	}

	public void Remove(AComponent c) {
		System.out.println("不能移出子项！");
	}

	public void Display(int AComponent) {
		System.out.println(new String() + name);
	}
}